<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">  
       <xsl:template match="text()" />
       <xsl:template match="html">
                <rss version="2.0">
                <channel>
                        <title><xsl:value-of select="head/title" /></title>
                        <link>http://www.dealsea.com</link>
                        <description><xsl:value-of select="head/meta[1]/@content" /></description>
                        <ttl>30</ttl>
                        <xsl:apply-templates />
                </channel>
                </rss>
        </xsl:template>
	<xsl:template match="div">
                <xsl:if test="@class='dealbox'">
			<item>
			<title><xsl:value-of select="b[1]"/></title>
			<guid isPermaLink="false">http://www.dealsea.com<xsl:value-of select="a[1]/@href" /></guid>
			<description>
				<xsl:copy-of select="."/>
			</description>
			</item>
                </xsl:if>
                <xsl:apply-templates/>
	</xsl:template>
</xsl:stylesheet>
